class User < ActiveRecord::Base
  has_many :proposals_presentations, :class_name => 'ProposalsPresentation'
  has_many :proposal_watches, :class_name => 'ProposalWatch'
  has_many :meetings_partecipations, :class_name => 'MeetingsPartecipation'
  has_many :blogs, :class_name => 'Blog'
  has_many :blog_comments, :class_name => 'BlogComment'
  has_many :groups_partecipations, :class_name => 'GroupsPartecipation'
  has_many :user_votes, :class_name => 'UserVote'
  has_many :proposal_comments, :class_name => 'ProposalComment'
  has_many :proposal_comment_rankings, :class_name => 'ProposalCommentRanking'
  has_many :proposal_rankings, :class_name => 'ProposalRanking'
  belongs_to :user_types, :class_name => 'UserType', :foreign_key => :user_type_id
  belongs_to :places, :class_name => 'Place', :foreign_key => :residenza_id
  belongs_to :places, :class_name => 'Place', :foreign_key => :nascita_id
end
